package com.sky.mapper;

import com.sky.dto.SalesTop10ReportDTO;
import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface OrderDetailMapper {

    void saveBatch(List<OrderDetail> orderDetailList);

    List<OrderDetail> queryByOrderId(Long orderId);

    void deleteByOrderId(Long orderId);

    List<SalesTop10ReportDTO> queryTop10(LocalDateTime begin, LocalDateTime end);
}
